package com.ruoyi.statisticalCenter.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum ScHqSysHqBillTwoEnum
{
    scCostSubject("scCostSubject", "科目信息"),
    income("income", "收入"),
    expend("expend", "支出");

    private final String code;
    private final String info;

    ScHqSysHqBillTwoEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (ScHqSysHqBillTwoEnum value : ScHqSysHqBillTwoEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
